package com.lwq.lwqmicoservice.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2021/6/10
 */
@Data
@TableName(value="sys_user")
public class SysUser extends BaseEntity implements Serializable  {

    private static final long serialVersionUID = 1L;

    // 状态为启用
    public static final String ENABLE = "1";
    // 状态为禁用
    public static final String DISABLE = "2";
    // 允许多客户端登录
    public static final String ALLOWMULTILOGIN = "true";
    // 进制多客户端人登录
    public static final String BANNEDMULTILOGIN = "false";

    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String name;

    private String userName;

    private String password;

    @TableField(exist = false)
    private String confirmPassword;

    private String phone;

    private String sex;

    private String avatar;

    private String status;

    private Integer age;

    private String email;

    private Date lastLoginDate;

    private String multiLogin;

    @TableField(exist = false)
    private String captcha;


}
